package com.reins.bookstore.service;

import com.reins.bookstore.entity.UserAuth;
import com.reins.bookstore.object.Filter;
import com.reins.bookstore.object.UserDTO;
import com.reins.bookstore.object.UserRate;

import java.util.List;


public interface UserService {

    UserAuth checkUser(String username, String password);

    UserDTO editUser(UserDTO user_dto, String password);

    UserDTO editUser(UserDTO user_dto);

    List<UserDTO> findAllUsers();

    List<UserAuth> findUserAuthInRange(Integer startId, Integer endId);

    List<UserAuth> getAllUsersSortedByType();

    UserAuth createUser(UserDTO user_dto, String password);

    Integer deleteUser(Integer userId);

    UserAuth findUserAuthByName(String username);

    UserAuth findUserById(Integer userId);

    List<UserRate> getUserRate(Filter filter);

    UserAuth changeBanned(Integer id);

    UserAuth changeType(Integer id);

}
